﻿#ifndef J_ADDITEM_H
#define J_ADDITEM_H

#include <head/g_pch.h>
#include <head/db_helper.h>
#include <head/m_message.h>
#include "m_fhs.h"

namespace Ui {
class J_AddItem;
}

class J_AddItem : public QDialog
{
    Q_OBJECT

public:
    explicit J_AddItem(QWidget *parent = nullptr);
    ~J_AddItem();

    void updateCategory();
    bool addItem(const QString &category,
                 const QString &detail,
                 const QString &addition);

private slots:
    void on_categories_currentTextChanged(const QString &text);
    void on_btn_submit_clicked();

private:
    Ui::J_AddItem *ui;

    QString table;
};

#endif // J_ADDITEM_H
